package com.yunao.commons.metasearch.entity;

import lombok.Data;

import java.io.Serializable;
@Data
public class ResponseObject implements Serializable {
    private int code; // 0 成功 ；1 失败
    private String msg; // 结果信息
    private Object data; // 返回值

    public ResponseObject(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
